package com.example.wexcle.demos.web.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.Bean;

import java.util.Date;
/**
 * <p>
 * 导入百万条数据实体类（不小心重名了）
 * </p>
 *
 * @author wzh
 * @since 2024-10-15
 */

@Data
//@AllArgsConstructor
//@NoArgsConstructor
@TableName("bk_file")
@ApiModel(value = "File对象", description = "")
public class File implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "编号",index = 0)//设置excel表头名称
    @ApiModelProperty("id")
    private Integer id;

    @ExcelProperty(value = "文件名称",index = 1)
    @ApiModelProperty("文件名称")
    private String filename;

    @ExcelProperty(value = "数据条数",index = 2)
    @ApiModelProperty("数据条数")
    private Integer count;

    @ExcelProperty(value = "文件本地地址",index = 3)
    @ApiModelProperty("文件本地地址")
    private String localaddress;

    @ExcelProperty(value = "排序",index = 4)
    @ApiModelProperty("排序")
    private Integer number;

    @ExcelProperty(value = "文件导入状态",index = 5)
    @ApiModelProperty("文件导入状态")
    private String state;

    @ExcelProperty(value = "导入时间",index = 6)
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("导入时间")
    private Date creattime;

    @ExcelProperty(value = "修改时间",index = 7)
@TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private Date updatetime;
}
